Source Chip
fun SourceChip(text: String, isSelected: Boolean, size: SourceChip.Size, showBadge: Boolean, onClick: () -> Unit, modifier: Modifier = Modifier, style: SourceChip.Style = SourceChip.Style.Default, onClickLabel: String? = null, iconOrImage: ChipDecoration = ChipDecoration.None)
Single-selection variant of the SourceChip component. This chip is designed to be used in a row of chips where only one chip can be selected at a time.
Parameters
text
The text displayed inside the chip.
is Selected
Whether the chip is selected.
size
The size of the chip. See SourceChip.Size for available options.
show Badge
Whether to display a badge on the chip. If true, the badge will be displayed with the colour defined in style.
on Click
Callback triggered when the chip is clicked.
modifier
Modifier to adjust the chip layout or appearance.
style
The style of the chip, including content colour, background colour, border, and more. See SourceChip.Style. Defaults to SourceChip.Style.Default.
on Click Label
Optional label for the onClick action.
icon Or Image
Optional content to display an icon/image before the title.